package com.ai.ubssapp.service;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.ai.ubssapp.bean.RespInfo;

/**
 * cas接口服务
 * 
 */
@Service("casService")
public class CasService /*extends AppService*/ {

	@Resource(name = "casIntf")
	private CasIntf casIntf;

	/**
	 * 登录cas并获取登录参数接口
	 * 
	 * @param param
	 * @return
	 * @throws Exception
	 */
	public RespInfo login(String staffId, String password, String randomNum) throws Exception {
		return casIntf.login(staffId, password,randomNum);
	}
	
	/**
	 * 退出cas
	 * 
	 * @param param
	 * @return
	 * @throws Exception
	 */
	public RespInfo logout(String loginParam) throws Exception {
		return casIntf.logout(loginParam);
	}

}